package bscripts.btoolkit {
	
	import laya.display.Stage;
	import laya.events.Event;

	public class Director {

		public static var designScaleWidth:Number;
		public static var designScaleHeight:Number;
        private static var designWidth:Number;
		private static var designHeight:Number;

		public static function init(designWidth:Number, designHeight:Number):void {
            Director.designWidth = designWidth;
            Director.designHeight = designHeight;
            Laya.stage.on(Event.RESIZE, Director, Director.onResize);
            Director.onResize();
        }
     
        private static function onResize():void {
            Director.designScaleWidth = Laya.stage.width/Director.designWidth;
            Director.designScaleHeight = Laya.stage.height/Director.designHeight;
        }
		
	}
}